package com.example.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.time.LocalDateTime;

@Data
@TableName("volunteer")
public class Volunteer {
    
    @TableId(type = IdType.AUTO)
    private Long id;
    
    // 基本信息
    private String name;
    private String idCard;
    private Integer age;
    private String gender;
    private String phone;
    private String email;
    
    // 志愿者信息
    private String volunteerNumber; // 志愿者编号
    private String education;       // 教育程度
    private String occupation;      // 职业
    private String skills;         // 特长技能
    private Integer serviceHours;   // 服务时长
    
    // 地址信息
    private String province;
    private String city;
    private String district;
    private String address;
    
    // 状态信息
    private Integer status;        // 0-待审核 1-正常 2-禁用
    
    // 时间信息
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    
    // 逻辑删除
    @TableLogic
    private Integer isDeleted;
} 